package com.wukong.alive;

import com.blankj.utilcode.util.AppUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

public class AppAdapter extends BaseQuickAdapter<AppUtils.AppInfo, BaseViewHolder> {

//    List<String> isSelectPack;

    public AppAdapter(List<AppUtils.AppInfo> datas) {
        super(R.layout.adapter_app_item,datas);
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, AppUtils.AppInfo item) {
        viewHolder.setImageDrawable(R.id.icon,item.getIcon())
                .setText(R.id.app_name,item.getName());


    }

//    private boolean isSelect(String pathName){
//        if(isSelectPack.contains(pathName)){
//            return true;
//        }
//        return false;
//    }
}
